package br.com.puertorico.mecanismos.ui.validators;

import javax.faces.validator.Validator;

import br.com.puertorico.common.utils.ResourceBundleUtils;
import br.com.puertorico.mecanismos.ui.utils.FacesUtils;

public abstract class BaseValidator implements Validator {

	public String getMessage(Object value) {
		String keyvalue = ResourceBundleUtils.getKey(FacesUtils.getLocale(),
				"br.com.puertorico.mecanismos.ui.bundles.ValidationMessages", getClass()
						.getSimpleName() + ".msg", value);
		return keyvalue;
	}

}
